package cn.org.xwb.bookmall.model.vo;

import cn.org.xwb.bookmall.model.po.Manager;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class ManagerVo {

    private Long id;

    /**
     * 头像地址
     */
    private String avatar;

    private String role;


    /**
     * 账号
     */
    private String account;

    /**
     * 用户名
     */
    private String username;

    /**
     * 邮箱
     */
    private String mail;

    /**
     * 注册时间
     */
    private Date registerTime;

    public ManagerVo(Manager manager) {
        this.avatar = manager.getAvatar();
        this.account = manager.getAccount();
        this.username = manager.getUsername();
        this.mail = manager.getMail();
        this.registerTime = manager.getRegisterTime();
    }

}
